package com.wwwarehouse.taskcenter.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by clannad.shao on 2017/11/21.
 * Description:
 */

public class BillBean implements Parcelable{

    public BillBean() {
    }

    public BillBean(String code, String name, String displaySeq) {
        this.code = code;
        this.name = name;
        this.displaySeq = displaySeq;
    }

    private String code;

    private String name;

    private String displaySeq;

    protected BillBean(Parcel in) {
        code = in.readString();
        name = in.readString();
        displaySeq = in.readString();
    }

    public static final Creator<BillBean> CREATOR = new Creator<BillBean>() {
        @Override
        public BillBean createFromParcel(Parcel in) {
            return new BillBean(in);
        }

        @Override
        public BillBean[] newArray(int size) {
            return new BillBean[size];
        }
    };

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDisplaySeq() {
        return displaySeq;
    }

    public void setDisplaySeq(String displaySeq) {
        this.displaySeq = displaySeq;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(code);
        dest.writeString(name);
        dest.writeString(displaySeq);
    }
}
